package org.example.record;

public class SomeService {
    // 定义业务方法，判断年龄是否18
    public boolean  isEligible(Object object) {
        if (object instanceof Person) {
            return ((Person) object).age() >= 18;
        }
        return false;
    }
}
